package ${config.basePackage}.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * ${table.comment} 查询条件
 *
 * @author ${config.author}
 * @date ${.now?string("yyyy年MM月dd日 HH:mm:ss")}
 * @since JDK 17
 */
@Data
@Schema(description = "${table.comment}查询条件")
public class ${table.className}Query implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "页码")
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNum = 1;

    @Schema(description = "每页数量")
    @Min(value = 1, message = "每页数量不能小于1")
    private Integer pageSize = 10;

    <#list table.columns as column>
    <#if column.queryable>
    /**
     * ${column.comment}
     */
    @Schema(description = "${column.comment}")
    private ${column.javaType} ${column.fieldName};

    </#if>
    </#list>
} 